﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/main.Master" CodeBehind="Comments.aspx.vb" Inherits="moviesblogspot.Comments" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">

    <asp:Label ID="Label5" runat="server" Text="COMMENT THE STORY" 
        BackColor="#990000" BorderStyle="Solid" Font-Bold="True" Font-Size="Larger" 
        ForeColor="White"></asp:Label>
    <table style="width: 78%; height: 79px;">
        <tr>
            <td style="width: 206px">
                <asp:Label ID="Label1" runat="server" Text="Written By:" BackColor="#990000" 
                    BorderStyle="Solid" Font-Bold="True" Font-Size="Medium" ForeColor="White"></asp:Label>
                <asp:Label ID="lbl_username" runat="server" Text="Label"></asp:Label>
            </td>
           
        </tr>
        <tr>
            <td style="width: 206px">
                <asp:Label ID="Label2" runat="server" Text="Topic Discussed:" 
                    BackColor="#990000" Font-Bold="True" Font-Size="Medium" ForeColor="White"></asp:Label>
                <asp:Label ID="lbl_Topic" runat="server" Text="Label"></asp:Label>
            </td>
            
        </tr>
        <tr>
            <td style="width: 206px">
                <asp:Label ID="Label3" runat="server" Text="Description:" BackColor="#990000" 
                    BorderStyle="Solid" Font-Bold="True" Font-Size="Medium" ForeColor="White"></asp:Label>
                <asp:Label ID="lbl_Description" runat="server" Text="Label"></asp:Label>
            </td>
            
        </tr>
    

        <tr>
        <td>
        
            

            <asp:Repeater ID="Repeater1" DataSourceID="SqlDataSource1"  runat="server">
            <ItemTemplate>
                <div style=" border-bottom: 20px; width:50%">
                    <ul>
                        <li  style=" background-color:Olive; text-align:left;list-style: none; width:150px;" >
                            <%#Eval("author")%> says:
                        </li>
                        <li style=" background-color:Olive; list-style: none;">
                            <%# Eval("comment")%> 
                         </li>
                    </ul>
                </div> 
                </ItemTemplate>
               </asp:Repeater>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:MovieConnectionString %>" 
                ProviderName="<%$ ConnectionStrings:MovieConnectionString.ProviderName %>" 
                SelectCommand="SELECT [author], [Comment] FROM [SBComments] WHERE ([Topics] = ?)">
                <SelectParameters>
                    <asp:QueryStringParameter Name="Topics" QueryStringField="ID" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            ADD COMMENTS HERE
            <br />
            <asp:TextBox ID="txtb_comment" runat="server" Height="83px" TextMode="MultiLine" 
                Width="481px"></asp:TextBox>
            <br />
            <asp:Button ID="btnComment" runat="server" Text="Submit" />
        
        </td>
        </tr>
    </table>


</asp:Content>
